package org.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "user")
public class User {

    @TableId(type = IdType.AUTO)
    private Integer uId;
    @TableField(value = "u_name")
    private String uName;
    @TableField(value = "u_password")
    private String uPassword;
    @TableField(value = "u_email")
    private String uEmail;
    @TableField(value = "u_sex")
    private String uSex;
    @TableField(value = "u_status")
    private int uStatus;
    @TableField(value = "u_phone")
    private String uPhone;
    @TableField(value = "u_register_date")
    private Date uRegisterDate;
    @TableField(value = "u_balance")
    private BigDecimal uBalance;
    @TableField(value = "u_avatar")
    private String uAvatar;
}
